package org.particles.domain.sim;

/**
 * simulation parameter, hold current values, min and max values
 * for adjustment, parameter name and description. acts as 
 * data transfer object between domain and GUI objects.
 */
public class SimParam {
	private int code;
	/** will be used as label text in UI. */
	private String name;
	/** parameter description. will be used as tooltip in UI. */
	private String desc;
	private double value;
	private Double minValue;
	private Double maxValue;
	
	public SimParam() {
		super();
	}
	public SimParam(int code, String name, double value) {
		super();
		this.code = code;
		this.name = name;
		this.value = value;
	}
	/** will be used as label text in UI. */
	public String getName() {
		return name;
	}
	/** will be used as label text in UI. */
	public void setName(String name) {
		this.name = name;
	}
	/** parameter description. will be used as tooltip in UI. */
	public String getDesc() {
		return desc;
	}
	/** parameter description. will be used as tooltip in UI. */
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public double getValue() {
		return value;
	}
	public void setValue(double value) {
		this.value = value;
	}
	public Double getMinValue() {
		return minValue;
	}
	public void setMinValue(Double minValue) {
		this.minValue = minValue;
	}
	public Double getMaxValue() {
		return maxValue;
	}
	public void setMaxValue(Double maxValue) {
		this.maxValue = maxValue;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	
}
